home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Book Chapters / 03 - Advanced Graphics / Shape Compiler Code / Demo / global.h < prev    next >
Text File  |  1995-02-27  |  2KB  |  46 lines

  1. //
  2. //    File: global.h
  3. //
  4. //    This file contains defines of a global nature.
  5. //
  6. //    2/18/95 -- Created by Mick
  7. //
  8.  
  9. // shield
  10. #ifndef _global_h_
  11. #define _global_h_
  12.  
  13. // global defines
  14.  
  15. // useful constants
  16. #define kNil                                                            0L                                                        // the value of an invalid pointer
  17. #define kTrue                                                        1                                                        // the value of truth
  18. #define kFalse                                                     0                                                        // the value of untruth
  19.  
  20. #define kWindowInFront                        ( WindowPtr )-1L        // the value to pass to NewWindow to place the window in the front
  21.  
  22. #define kSpriteResType                        'Sprt'                                            // the res type of a sprite resource
  23.  
  24. // resource ids
  25.  
  26. // color tables ('clut')
  27. #define kAppColorTableResID        128                    // the resource id of the clut resource that defines the colors for the program
  28.  
  29. // windows ('WIND')
  30. #define kMainWindowResID                128                    // the resource id of the WIND resource for the main window
  31.  
  32. // picts ('PICT')
  33. #define kNumberOne                                    201                    // the resource id of the picture of the 1 disk
  34. #define kNumberTwo                                    202                    // the resource id of the picture of the 2 disk
  35. #define kNumberThree                            203                    // the resource id of the picture of the 3 disk
  36. #define kNumberFour                                204                    // the resource id of the picture of the 4 disk
  37. #define kNumberFive                                    205                    // the resource id of the picture of the 5 disk
  38. #define kNumberSix                                    206                    // the resource id of the picture of the 6 disk
  39. #define kNumberSeven                            207                    // the resource id of the picture of the 7 disk
  40. #define kNumberEight                                208                    // the resource id of the picture of the 8 disk
  41. #define kNumberNine                                    209                    // the resource id of the picture of the 9 disk
  42. #define kNumberTen                                    210                    // the resource id of the picture of the 10 disk
  43.  
  44. // end of shield
  45. #endif // #ifndef _global_h_
  46.